package com.jz.util;

/**
 * Created by Administrator on 2016/1/28.
 */
public class StringUtil {


    public static String[] convertString2Array(String str,String split){
        String[] exec = null;
        try{
            if (str != null && !str.trim().equals("")) {
                exec = str.trim().split(split);
            }
        }catch (Exception e){
            exec = null;
        }finally {
            return exec;
        }
    }
}
